package com.suneee.store.dao;

import java.util.List;
import java.util.Map;

import com.suneee.context.page.Page;
import com.suneee.orm.Dao;
import com.suneee.store.bean.ProductDTO;
import com.suneee.store.entity.Spu;

public interface SpuDao extends Dao<Spu, Integer> {
	
	public Page<Spu> listView(ProductDTO dto);

	public List<Spu> getListBySpecIdAndEnterpriseCode(Integer specId,String enterpriseCode);
	
	public boolean isUseSpec(Integer specId);
	
	public boolean isUseEnterpriseSpec(Integer specId);
	
	/**
	 * 
	 * @param dto
	 * @return
	 */
	public Page<Map<String,Object>> mapView(ProductDTO dto);
	
}
